SuperStrict

Import arm.box2d

Local trans:b2Transform = New b2Transform

Print "Degrees: " + trans.GetRotation().GetAngle() + " | Radian: " + trans.GetRotation().GetAngleRad()
Print "Position: [" + trans.GetPosition().X() + "," + trans.GetPosition().Y() + "]"
Print ""

Local trans2:b2Transform = New b2Transform.Create(vec2(100.0, 200.0), new b2Rot.Create(90.0))

Print "Degrees: " + trans2.GetRotation().GetAngle() + " | Radian: " + trans2.GetRotation().GetAngleRad()
Print "Position: [" + trans2.GetPosition().X() + "," + trans2.GetPosition().Y() + "]"
Print ""

Local trans3:b2Transform = New b2Transform
trans3.SetIdentity()

Print "Degrees: " + trans3.GetRotation().GetAngle() + " | Radian: " + trans3.GetRotation().GetAngleRad()
Print "Position: [" + trans3.GetPosition().X() + "," + trans3.GetPosition().Y() + "]"
Print ""

Local trans4:b2Transform = New b2Transform

trans4.SetPosition(Vec2(25.0, 50.0))
trans4.SetRotation(new b2Rot.Create(45.0))

Print "Degrees: " + trans4.GetRotation().GetAngle() + " | Radian: " + trans4.GetRotation().GetAngleRad()
Print "Position: [" + trans4.GetPosition().X() + "," + trans4.GetPosition().Y() + "]"
Print ""

Local trans5:b2Transform = New b2Transform
trans5.Set(Vec2(33.0, 55.0), 20.0)
Print "Degrees: " + trans5.GetRotation().GetAngle() + " | Radian: " + trans5.GetRotation().GetAngleRad()
Print "Position: [" + trans5.GetPosition().X() + "," + trans5.GetPosition().Y() + "]"